import requests


def checkPostID():
    postIdNum = input("请输入要查询的快递单号：")
    companyType = input("请输入公司编码：")
    url= "http://widget.cifuwu.com/express/kdniao/?postid="+postIdNum+"&type= "+str(companyType)
    result = requests.get(url)
    data =result.json()
    for i  in range(0,9):
        print("接收点:"+data["data"]["list"][i]["AcceptStation"]+"\n"+"接收时间："+data["data"]["list"][i]["AcceptTime"])
        print("--------------------------------")


checkPostID()


